﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    /// <summary>
    /// 教师课程班级关联
    /// </summary>
    [Serializable]
    public class TeachClsCause
    {
        public TeachClsCause(int mTeachID, int mCauseID, int mClsID)
        {
            m_TeachID = mTeachID;
            m_CauseID = mCauseID;
            m_ClsID = mClsID;
        }

        public TeachClsCause()
        {
            m_TeachID = 0;
            m_CauseID = 0;
            m_ClsID = 0;

        }

        #region TeachID

        private int m_TeachID;

        public int TeachID
        {
            get { return m_TeachID; }
            set { m_TeachID = value; }
        }

        #endregion

        #region CauseID

        private int m_CauseID;

        public int CauseID
        {
            get { return m_CauseID; }
            set { m_CauseID = value; }
        }

        #endregion

        #region ClsID

        private int m_ClsID;

        public int ClsID
        {
            get { return m_ClsID; }
            set { m_ClsID = value; }
        }

        #endregion



        #region Rewrite Equals and HashCode

        /// <summary>
        /// 
        /// </summary>
        public override bool Equals(object obj)
        {
            if (this == obj) return true;
            if ((obj == null) || (obj.GetType() != GetType())) return false;
            TeachClsCause castObj = (TeachClsCause)obj;
            return (castObj != null)
 && m_TeachID == castObj.TeachID && m_CauseID == castObj.CauseID && m_ClsID == castObj.ClsID;
        }

        /// <summary>
        /// 用唯一值实现GetHashCode
        /// </summary>
        public override int GetHashCode()
        {
            int hash = 54;
            hash = hash * 54
 * m_TeachID.GetHashCode() * m_CauseID.GetHashCode() * m_ClsID.GetHashCode(); return hash;
        }

        #endregion


    }

    /// <summary>
    /// 教师课程班级的自定义关联
    /// </summary>
    [Serializable]
    public class CustomTeachClsCause
    {
        public CustomTeachClsCause()
        {

        }

        #region ClsRID

        private int m_ClsRID;

        public int ClsRID
        {
            get { return m_ClsRID; }
            set { m_ClsRID = value; }
        }

        #endregion

        #region ClsName

        private string m_ClsName;

        public string ClsName
        {
            get { return m_ClsName; }
            set { m_ClsName = value; }
        }

        #endregion

        #region GradeID

        private int m_GradeID;

        public int GradeID
        {
            get { return m_GradeID; }
            set { m_GradeID = value; }
        }

        #endregion

        #region CauseRID

        private int m_CauseRID;

        public int CauseRID
        {
            get { return m_CauseRID; }
            set { m_CauseRID = value; }
        }

        #endregion

        #region CauseName

        private string m_CauseName;

        public string CauseName
        {
            get { return m_CauseName; }
            set { m_CauseName = value; }
        }

        #endregion

        #region TeachRID

        private int m_TeachRID;

        public int TeachRID
        {
            get { return m_TeachRID; }
            set { m_TeachRID = value; }
        }

        #endregion

        #region TeachName

        private string m_TeachName;

        public string TeachName
        {
            get { return m_TeachName; }
            set { m_TeachName = value; }
        }

        #endregion


    };

    [Serializable]
    public class ClassTercher
    {
        public ClassTercher()
        {

        }

        #region CauseID

        private int m_causeid;

        public int CauseID
        {
            get { return m_causeid; }
            set { m_causeid = value; }
        }

        #endregion

        #region CauseName

        private string m_CauseName;

        public string CauseName
        {
            get { return m_CauseName; }
            set { m_CauseName = value; }
        }

        #endregion

        #region TeacherID

        private int m_TeacherID;

        public int TeacherID
        {
            get { return m_TeacherID; }
            set { m_TeacherID = value; }
        }

        #endregion

        #region TeachName

        private string m_TeachName;

        public string TeachName
        {
            get { return m_TeachName; }
            set { m_TeachName = value; }
        }

                #endregion


        #region ClsID

        private int m_ClsID;

        public int ClsID
        {
            get { return m_ClsID; }
            set { m_ClsID = value; }
        }

        #endregion


        #region ClsName

        private string m_ClsName;

        public string ClsName
        {
            get { return m_ClsName; }
            set { m_ClsName = value; }
        }

        #endregion

       

     








    };
}